package uk.co.agileworks.bidpirate.test;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.test.context.support.GenericXmlContextLoader;
import org.springframework.web.context.request.RequestScope;
import org.springframework.web.context.request.SessionScope;

public class SpringTestContextLoader extends GenericXmlContextLoader {

	@Override
	protected void customizeBeanFactory(DefaultListableBeanFactory beanFactory) {
		beanFactory.registerScope("request", new RequestScope());
		beanFactory.registerScope("session", new SessionScope());
		super.customizeBeanFactory(beanFactory);
	}
}
